package com.hbgc.pojo;

import java.io.Serializable;

/**
 * 视频分类
 * @TableName tb_type
 */
public class TbType implements Serializable {
    /**
     * 
     */
    private Integer typeid;

    /**
     * 视频分类名称
     */
    private String typename;

    /**
     * 视频分类描述
     */
    private String typedesc;

    /**
     * 视频分类上映时间汇总
     */
    private String typeage;

    /**
     * 视频分类的子分类汇总
     */
    private String typeson;

    /**
     * 视频分类的地区汇总
     */
    private String typearea;

    /**
     * 当前电影的父分类
     */
    private Integer pid;

    /**
     * 
     */
    private Integer ordernum;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getTypeid() {
        return typeid;
    }

    /**
     * 
     */
    public void setTypeid(Integer typeid) {
        this.typeid = typeid;
    }

    /**
     * 视频分类名称
     */
    public String getTypename() {
        return typename;
    }

    /**
     * 视频分类名称
     */
    public void setTypename(String typename) {
        this.typename = typename;
    }

    /**
     * 视频分类描述
     */
    public String getTypedesc() {
        return typedesc;
    }

    /**
     * 视频分类描述
     */
    public void setTypedesc(String typedesc) {
        this.typedesc = typedesc;
    }

    /**
     * 视频分类上映时间汇总
     */
    public String getTypeage() {
        return typeage;
    }

    /**
     * 视频分类上映时间汇总
     */
    public void setTypeage(String typeage) {
        this.typeage = typeage;
    }

    /**
     * 视频分类的子分类汇总
     */
    public String getTypeson() {
        return typeson;
    }

    /**
     * 视频分类的子分类汇总
     */
    public void setTypeson(String typeson) {
        this.typeson = typeson;
    }

    /**
     * 视频分类的地区汇总
     */
    public String getTypearea() {
        return typearea;
    }

    /**
     * 视频分类的地区汇总
     */
    public void setTypearea(String typearea) {
        this.typearea = typearea;
    }

    /**
     * 当前电影的父分类
     */
    public Integer getPid() {
        return pid;
    }

    /**
     * 当前电影的父分类
     */
    public void setPid(Integer pid) {
        this.pid = pid;
    }

    /**
     * 
     */
    public Integer getOrdernum() {
        return ordernum;
    }

    /**
     * 
     */
    public void setOrdernum(Integer ordernum) {
        this.ordernum = ordernum;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TbType other = (TbType) that;
        return (this.getTypeid() == null ? other.getTypeid() == null : this.getTypeid().equals(other.getTypeid()))
            && (this.getTypename() == null ? other.getTypename() == null : this.getTypename().equals(other.getTypename()))
            && (this.getTypedesc() == null ? other.getTypedesc() == null : this.getTypedesc().equals(other.getTypedesc()))
            && (this.getTypeage() == null ? other.getTypeage() == null : this.getTypeage().equals(other.getTypeage()))
            && (this.getTypeson() == null ? other.getTypeson() == null : this.getTypeson().equals(other.getTypeson()))
            && (this.getTypearea() == null ? other.getTypearea() == null : this.getTypearea().equals(other.getTypearea()))
            && (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid()))
            && (this.getOrdernum() == null ? other.getOrdernum() == null : this.getOrdernum().equals(other.getOrdernum()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getTypeid() == null) ? 0 : getTypeid().hashCode());
        result = prime * result + ((getTypename() == null) ? 0 : getTypename().hashCode());
        result = prime * result + ((getTypedesc() == null) ? 0 : getTypedesc().hashCode());
        result = prime * result + ((getTypeage() == null) ? 0 : getTypeage().hashCode());
        result = prime * result + ((getTypeson() == null) ? 0 : getTypeson().hashCode());
        result = prime * result + ((getTypearea() == null) ? 0 : getTypearea().hashCode());
        result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode());
        result = prime * result + ((getOrdernum() == null) ? 0 : getOrdernum().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", typeid=").append(typeid);
        sb.append(", typename=").append(typename);
        sb.append(", typedesc=").append(typedesc);
        sb.append(", typeage=").append(typeage);
        sb.append(", typeson=").append(typeson);
        sb.append(", typearea=").append(typearea);
        sb.append(", pid=").append(pid);
        sb.append(", ordernum=").append(ordernum);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}